package com.cunzai.blog.application.auth.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cunzai.blog.application.auth.mapper.UserMapper;
import com.cunzai.blog.common.PO.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, User> {
    @Autowired
    private UserMapper userMapper;

    // 这里可以扩展更多自定义的业务逻辑
    public Boolean existsByUsername(String userName){
        return userMapper.existsByUsername(userName);
    }
}